package cn.kgc.client;
import cn.kgc.pojo.DmScheduler;

import cn.kgc.fallback.DmSchedulerClientFallBack;
import java.util.List;
import java.util.Map;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RequestBody;
/**
* Created by shang-pc on 2018/5/15.
*/
@FeignClient(name = "dm-scheduler-provider", fallback = DmSchedulerClientFallBack.class)
public interface RestDmSchedulerClient {
@RequestMapping(value = "/getDmSchedulerById",method = RequestMethod.POST)
public DmScheduler getDmSchedulerById(@RequestParam("id") Long id)throws Exception;

@RequestMapping(value = "/getDmSchedulerListByMap",method = RequestMethod.POST)
public List<DmScheduler>    getDmSchedulerListByMap(@RequestParam Map
<String,Object> param)throws Exception;

@RequestMapping(value = "/getDmSchedulerCountByMap",method = RequestMethod.POST)
public Integer getDmSchedulerCountByMap(@RequestParam Map
<String,Object> param)throws Exception;

@RequestMapping(value = "/qdtxAddDmScheduler",method = RequestMethod.POST)
public Integer qdtxAddDmScheduler(@RequestBody DmScheduler dmScheduler)throws Exception;

@RequestMapping(value = "/qdtxModifyDmScheduler",method = RequestMethod.POST)
public Integer qdtxModifyDmScheduler(@RequestBody DmScheduler dmScheduler)throws Exception;

@RequestMapping(value = "/qddelDmScheduler",method = RequestMethod.GET)
public Integer qdtxDelDmScheduler(@RequestParam("id") Long id)throws Exception;
}

